<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
    <title>查询专利信息管理</title>
    <meta name="decorator" content="default"/>
    <script type="text/javascript">
        $(document).ready(function() {

        });
        function page(n,s){
            $("#pageNo").val(n);
            $("#pageSize").val(s);
            $("#searchForm").submit();
            return false;
        }
    </script>
    <style>
        /*图表css*/
        .jeebox{
            box-shadow: 0 2px 3px #eee;
            margin:20px;
            border-top:2px solid #2fa4e7;
            border-radius:4px;
            padding-bottom:15px;
            position: relative;
        }
        .jeebox .jeebox-title{
            line-height:30px;
            padding:5px 15px;
            border-bottom:1px solid #eee;
        }
        .jeebox-sel{
            position:absolute;
            right:15px;
            top:6px;
        }
    </style>
    <script type="text/javascript" src="${ctxStaticJS}/echarts.min.js"></script>
    <script type="text/javascript" src="${ctxStaticJS}/macarons.js"></script>
</head>
<body>
<h1 style="align-content: center">  闽侯县域内专利申请年度趋势分析</h1>
<br>
<br>
<div class="jeebox">
    <div class="jeebox-title">近十年年度趋势分析</div>
    <div id="log-hdfs-1" style="width:100%;height:300px;"></div>
</div>
<c:forEach items="${mapList}" var="mapList">
    <script type="text/javascript">
        /*图表2*/
        var leg=["所有转让到县域内的专利","高校转让到县域内的专利"];
        var time=[${mapList.year10},${mapList.year9},${mapList.year8},${mapList.year7},${mapList.year6},${mapList.year5},${mapList.year4},${mapList.year3},${mapList.year2},${mapList.year1}];
        var z1=[${mapList.assignCount10},${mapList.assignCount9},${mapList.assignCount8},${mapList.assignCount7},${mapList.assignCount6},${mapList.assignCount5},${mapList.assignCount4},${mapList.assignCount3},${mapList.assignCount2},${mapList.assignCount1}];
        var z2=[${mapList.Universities10},${mapList.Universities9},${mapList.Universities8},${mapList.Universities7},${mapList.Universities6},${mapList.Universities5},${mapList.Universities4},${mapList.Universities3},${mapList.Universities2},${mapList.Universities1}];
        var myChart = echarts.init(document.getElementById('log-hdfs-1'),'macarons');
        option = {/*
                color: ['#3398DB'],*/
            tooltip : {
                trigger: 'axis',
                axisPointer : {            // 坐标轴指示器，坐标轴触发有效
                    type : 'shadow'        // 默认为直线，可选为：'line' | 'shadow'
                }
            },
            legend:{
                data:leg
            },
            grid: {
                left: '3%',
                right: '4%',
                bottom: '3%',
                containLabel: true
            },
            xAxis : [
                {
                    type : 'category',
                    data : time,
                    /*axisTick: {
                        alignWithLabel: true
                    }*/
                }
            ],
            yAxis : [
                {
                    type : 'value'
                }
            ],
            series : [
                {
                    name:'所有转让到县域内的专利',
                    type:'bar',
                    barWidth: '10%',
                    data:z1
                },
                {
                    name:'高校转让到县域内的专利',
                    type:'bar',
                    barWidth: '10%',
                    data:z2
                }
            ]
        };

        myChart.setOption(option);
        window.addEventListener("resize",function(){
            myChart.resize();
        });
    </script>
</c:forEach>
</body>
</html>